package com.justgame.project.service.system.feign;

import com.justgame.project.service.api.feign.ISysStationOrderClient;
import com.justgame.project.service.system.mapper.SysStationOrderMapper;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * SysStationOrder 微服务接口实现
 * @author ZhouWeiBo
 * @create 2022/4/20
 */
@RestController
@AllArgsConstructor
public class SysStationOrderClient implements ISysStationOrderClient {
    private final SysStationOrderMapper sysStationOrderMapper;

    @Override
    @GetMapping(SELECT_HAS_BOUGHT_GAME)
    public Boolean hasBought(@RequestParam("userId") String userId,@RequestParam("gameId") String gameId) {
        return sysStationOrderMapper.hasBought(userId,gameId);
    }
}
